//
//  UIViewController+BookOrLogin.m
//  Doctor1.0
//
//  Created by mk on 15/8/12.
//  Copyright (c) 2015年 cocoa-mk. All rights reserved.
//

#import "UIViewController+BookOrLogin.h"
#import "LoginViewController.h"
@implementation UIViewController (BookOrLogin)

//- (void)pushBookOrLoginVCWithDoctor:(Doctor *)doc ExperTeam:(ExpertTeams *)exper;
//{
//    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
//    NSString *usertoken = [defaults objectForKey:@"usertoken"];
//    if (usertoken.length == 0) {
//        LoginViewController *lgVC = [[LoginViewController alloc]init];
//        UINavigationController *navi  = [[UINavigationController alloc]initWithRootViewController:lgVC];
//        [self presentViewController:navi animated:NO completion:^{
//            
//        }];
//        
//    }else{
//  //      BookViewController *bookVC = [[ BookViewController alloc]init];
//   //     bookVC.doc = doc;
//   //     bookVC.exper = exper;
//   //     [self.navigationController  pushViewController:bookVC animated:NO];
//    
//        
//    }
//    
//}

@end
